<?php
class Modulemanager_Data_Getcurrentmodule implements Modulemanager_Data_Mainable{
    
    private $core_controller_selectdata;
    
    public function __construct() {
        $this->core_controller_selectdata = new Core_Controller_Selectdata;
    }

    public function main(array $variables = null) {
        $variables['query'] = "SELECT module_settings.module_name, module_settings.status_name, module_settings.access_level, module_meta_values.module_meta_title, module_content_values.module_image, module_meta_values.module_meta_description, module_meta_values.module_meta_keywords, module_content_values.module_title, module_content_values.module_description, module_content_values.module_content FROM module_settings, module_meta_values, module_content_values WHERE module_settings.module_name='".$variables['get']['name']."' AND module_settings.module_name = module_meta_values.module_name AND module_settings.module_name = module_content_values.module_name AND module_meta_values.module_name = module_content_values.module_name;";
        return $this->core_controller_selectdata->main($variables);
    }

}
